package service.beanDefineDemo;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

/**
 * @Description ${DESCRIPTION}.
 * @author: wwchen
 * @DateTime: 2018-05-12 17:59
 */
/*bean作用域，prototype表示每次调用IOC容器中则产生一个新的bean对象，默认是single单例模式*/
@Scope("prototype")
/*普通bean*/
@Component
public class BeanDefineByAnnotation {
    public void beanTest(){
        System.out.println("bean定义成功");
        System.out.println();
    }
}
